Skip to content

Bump version to 3.0.8 and add Flickr API integration#106

Merged
goldlabelapps merged 3 commits intomasterfrom
staging
Apr 29, 2026
Merged

Bump version to 3.0.8 and add Flickr API integration#106
goldlabelapps merged 3 commits intomasterfrom
staging

Conversation

@goldlabelapps
Copy link
Copy Markdown
Owner

This pull request introduces a new Flickr API integration to the project, providing endpoints for syncing, managing, and querying Flickr data in a manner consistent with the existing GitHub integration. It adds new API routes, database table creation/emptying/syncing logic, and updates the environment configuration and documentation accordingly. Additionally, there is a minor fix to the prompt API and a version bump.

Flickr API Integration

  • Added a new Flickr API module with endpoints for:
    • Fetching Flickr data (GET /flickr)
    • Creating Flickr tables (POST /flickr/createtable)
    • Emptying Flickr tables (POST /flickr/emptytables)
    • Syncing data from Flickr API into the database (POST /flickr/sync) [1] [2] [3] [4] [5]
  • Registered the new Flickr router in the main API routes (app/api/routes.py) [1] [2]
  • Added a README for the Flickr API integration, including environment variable requirements and table design

Configuration and Documentation

  • Updated .env.sample to include required Flickr API credentials (FLICKR_USER, FLICKR_KEY, FLICKR_SECRET)

Other Improvements

  • Fixed the prompt API's metadata response to return the correct record fields (top_record with prompt and completion)
  • Bumped the application version from 3.0.7 to 3.0.8

Update __version__ to 3.0.8. Modify get_prompt_table_metadata response structure: rename the returned key from "first_record" to "top_record" and enable inclusion of the "prompt" and "completion" fields (previously commented out) so the API returns full top record details.
Introduce a new Flickr integration under app/api/flickr: add a README, main router, and endpoints to (1) GET /flickr (return table counts and recent rows), (2) POST /flickr/createtable (create flickr_* tables), (3) POST /flickr/emptytables (delete rows), and (4) POST /flickr/sync (fetch public photos from Flickr API and insert into flickr_photos). Update .env.sample with FLICKR_USER, FLICKR_KEY, and FLICKR_SECRET variables and register flickr_router in app/api/routes.py. The sync route uses requests and dotenv, and created tables include flickr_accounts, flickr_photos, flickr_albums, and flickr_resources.
@goldlabelapps goldlabelapps merged commit fc6abf8 into master Apr 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant